def card_value(card):
	if card == 55:
		return 7
	elif (card % 11) == 0:
		return 5
	elif (card % 10) == 0:
		return 3
	elif (card % 5) == 0:
		return 2
	return 1


def calc_penalty(row):
	return sum(map(card_value, row))


def lowest_penalty_row_index(rows):
	print(rows)
	penalties = list(map(calc_penalty,  rows))
	return [i for i, pen in enumerate(penalties) if pen == min(penalties)]
